package com.treasure.hunt.entity

import androidx.annotation.DrawableRes
import androidx.annotation.StringRes
import com.treasure.hunt.R
import java.io.Serializable

data class MainBean<T : Enum<*>, E>(
    @StringRes
    val name: Int = R.string.app_name,
    val badge: Int = 0,
    @DrawableRes
    val icon: Int = 0,
    val type: T,
    var data: E? = null
) : Serializable

enum class AuthResult(val desc: String) {
    SUCCESS("授权成功"),
    FAILURE("授权失败"),
    CANCEL("取消授权")
}

enum class Action {
    GO_HUNT, GO_SHARE, GO_TASK, GO_MINE, GO_HOME
}
